package com.ruoyi.domain;

import java.util.Set;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
public class SysRole extends BaseEntity{
	
	private Long roleId;
	
	private String roleName;
	
	private String roleKey;
	
	private Long roleSort;
	
	private String dataScope;
	
	private boolean menuCheckStrictly;
	
	private boolean deptCheckStrictly;
	
	private String status;
	
	private String delFlag;
	
	private Set<String> permissions;
	
	
	
	public boolean isAdmin() {
		return isAdmin(this.roleId);
	}

	public static boolean isAdmin(Long roleId) {
		return roleId != null && 1L == roleId;
	}

	
}
